package com.zzs.blog.website.util.backup;

import java.util.ArrayList;

/**
 * @Author ZechariahZheng
 * @Date 2019/10/27 10:39
 * @Version 1.0
 * @description
 */
public class FKCollection extends ArrayList<FK> {

    /**
     *
     */
    private static final long serialVersionUID = -972085209611643212L;

    public boolean isReferenced(Table referenceTable){
        for(FK fk : this){
            if(fk.getReferenceTable().equals(referenceTable)){
                return true;
            }
        }
        return false;
    }
}
